<template>
	<page-body>
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center wfjs_flex_0_higd"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub wfjs_fd0_0_higd'>
					<view class='flex flex-wrap align-center wfjs_fd0_0_c0_higd' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  wfjs_fd0_0_c0_c0_higd'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='wfjs_fd0_0_c1_c0_higd'>{{$t('物防建设')}}</text>
					</view>
					<view class='flex flex-wrap align-center justify-end wfjs_fd0_0_c0_higd'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<view class="flex benben-position-layout flex flex-wrap align-center wfjs_flex_1_higd"
				:style="{top:(88+StatusBarRpx)+'rpx', }">
				<view class='flex flex-wrap align-center flex-sub wfjs_fd1_0_higd'>
					<image class='wfjs_fd1_0_c0_higd' mode="aspectFit" :src='STATIC_URL+"134.png"'></image>
					<benben-input class='flex-sub wfjs_fd1_0_c1_higd' type="text" :placeholder="$t('请输入搜索内容')"
						confirm-type="search" :maxlength="-1"
						placeholder-style="color:rgba(191, 191, 191, 1);font-size:28rpx"
						@confirm="getcc83906e21e8eeFunc()" v-model="key" />
				</view>

			</view>
			<view :style="{height: '120rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction align-stretch benben-flex-layout wfjs_flex_2_higd">
				<view class='flex flex-wrap align-center wfjs_fd2_0_higd'>
					<image class='wfjs_fd2_0_c0_higd' mode="aspectFit" :src='STATIC_URL+"135.png"'></image>
					<text class='wfjs_fd2_0_c1_higd'>{{$t('物资列表')}}</text>
				</view>
				<template v-for='(item,key0) in listdat'>
					<view class='flex flex-direction align-stretch wfjs_fd2_1_higd thin-border-bottom thin-border-solid'
						@tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pagesanfang/js/wfdetails/wfdetails?id=${item.aid}`" :key='key0'>
						<view class='flex flex-wrap align-center'>
							<view class='flex flex-wrap align-center'>
								<image class='wfjs_fd2_1_c0_c0_c0_higd' mode="aspectFill" :src='item.zp'></image>
							</view>
							<view class='flex flex-direction align-stretch flex-sub wfjs_fd2_1_c0_c1_higd'>
								<view class='flex flex-wrap align-center wfjs_fd2_1_c0_c1_c0_higd'>
									<text class='wfjs_fd2_1_c0_c1_c0_c0_higd'>{{item.wzmc}}</text>
								</view>
								<view class='flex flex-wrap align-center justify-between'>
									<view class='flex flex-wrap align-center wfjs_fd2_1_c0_c1_c0_higd item hid1'>
										<text class='wfjs_fd2_1_c0_c1_c1_c0_c0_higd'>{{$t('物资分类')}}</text>
										<text>{{item.wzfl}}</text>
									</view>
									<view class='flex flex-wrap align-center wfjs_fd2_1_c0_c1_c0_higd item hid1'>
										<text class='wfjs_fd2_1_c0_c1_c1_c0_c0_higd'>{{$t('规格型号')}}</text>
										<text>{{item.ggxh}}</text>
									</view>
									<view class='flex flex-wrap align-center wfjs_fd2_1_c0_c1_c0_higd item hid1'>
										<text class='wfjs_fd2_1_c0_c1_c1_c0_c0_higd'>{{$t('所属校区')}}</text>
										<text>{{item.tgxxxjcxxxqjbxx_xqmc}}</text>
									</view>
									<view class='flex flex-wrap align-center wfjs_fd2_1_c0_c1_c0_higd item hid1'>
										<text class='wfjs_fd2_1_c0_c1_c1_c0_c0_higd'>{{$t('物资数量')}}</text>
										<text>{{item.num}}</text>
									</view>
								</view>
							</view>
						</view>
						<view class='flex flex-wrap align-center wfjs_fd2_1_c1_higd'>
							<!-- <text class='wfjs_fd2_1_c1_c0_higd'  >{{$t('描述')}}</text> -->
							<text class='flex-sub wfjs_fd2_1_c1_c1_higd'>{{item.ms}}</text>
						</view>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"page": "1",
				"listdat": [],
				"key": ""
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.getcc83906e21e8eeFunc()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {
			this.getcc83906e21e8eeFunc()
		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//查询人防建设列表
			getcc83906e21e8eeFunc() {
				let xqh = uni.getStorageSync('USER_XQ');
				this.minixPagingListsApi = global.apiUrls.post68390767726b1;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {
					wzmc: this.key,
					xiaoqu_id: xqh
				}
				this.listData = [];
				this.listdat = this.listData;
				this.pagingListToggle();

			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(255, 255, 255, 1);
		background-size: 100% auto;

		.wfjs_flex_2_higd {
			padding: 0rpx 32rpx 32rpx 32rpx;

			.wfjs_fd2_0_higd {
				margin: 16rpx 0rpx 0 0rpx;

				.wfjs_fd2_0_c0_higd {
					width: 38rpx;
					height: 38rpx;
					border-radius: 0rpx;
				}

				.wfjs_fd2_0_c1_higd {
					color: #333;
					font-size: 32rpx;
					font-weight: 500;
					margin: 0rpx 0rpx 0rpx 10rpx;
				}
			}

			.wfjs_fd2_1_higd {
				padding: 32rpx 0rpx 32rpx 0rpx;
				--thin-border-color: #eee;

				.wfjs_fd2_1_c0_c0_c0_higd {
					width: 172rpx;
					height: 172rpx;
					border-radius: 32rpx;
				}

				.wfjs_fd2_1_c0_c1_higd {
					margin: 0rpx 0rpx 0rpx 24rpx;
					.item{
						width: 50%;
					}
				}

				.wfjs_fd2_1_c1_higd {
					margin: 24rpx 0rpx 0rpx 0rpx;

					.wfjs_fd2_1_c1_c0_higd {
						color: rgba(153, 153, 153, 1);
					}

					.wfjs_fd2_1_c1_c1_higd {
						margin: 0rpx 0rpx 0rpx 16rpx;
					}
				}
			}
		}

		.wfjs_fd2_1_c0_c1_c0_higd {
			margin: 0rpx 0rpx 24rpx 0rpx;

			.wfjs_fd2_1_c0_c1_c0_c0_higd {
				font-size: 32rpx;
				font-weight: 500;
			}
		}

		.wfjs_fd2_1_c0_c1_c1_c0_c0_higd {
			color: rgba(153, 153, 153, 1);
			margin: 0rpx 16rpx 0rpx 0rpx;
		}

		.wfjs_flex_1_higd {
			background-color: #ffffff;
			width: 750rpx;
			height: 120rpx;
			overflow: hidden;
			z-index: 10;
			top: 88rpx;

			.wfjs_fd1_0_higd {
				margin: 0rpx 32rpx 0rpx 32rpx;
				height: 72rpx;
				border-radius: 36rpx;
				background: rgba(246, 246, 246, 1);
				padding: 0rpx 32rpx 0rpx 32rpx;

				.wfjs_fd1_0_c0_higd {
					width: 32rpx;
					height: 32rpx;
					border-radius: 0rpx 0rpx 0rpx 0rpx;
					margin: 0rpx 24rpx 0rpx 0rpx;
				}

				.wfjs_fd1_0_c1_higd {
					font-size: 28rpx;
					font-weight: 500;
					color: #333333;
					line-height: 72rpx;
					height: 72rpx;
				}
			}
		}

		.wfjs_flex_0_higd {
			width: 750rpx;
			height: 88rpx;
			overflow: hidden;
			z-index: 10;
			top: 0rpx;
			background: #fff;
			background-size: 100% auto !important;

			.wfjs_fd0_0_higd {
				padding: 0rpx 32rpx 0rpx 32rpx;

				.wfjs_fd0_0_c1_c0_higd {
					font-size: 36rpx;
					font-weight: 700;
					color: #333333;
					line-height: 50rpx;
				}
			}
		}

		.wfjs_fd0_0_c0_higd {
			width: 120rpx;

			.wfjs_fd0_0_c0_c0_higd {
				font-size: 36rpx;
				color: #333;
			}
		}
	}
</style>
